package com.cz.video.website.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cz.video.website.domain.WebsiteVideo;
import com.cz.video.website.domain.bo.WebsiteVideoBo;
import com.cz.video.website.domain.vo.WebsiteVideoVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 电影视频表 Mapper 接口
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
public interface WebsiteVideoMapper extends BaseMapper<WebsiteVideo> {

    WebsiteVideoVo selectDetailInfo(@Param("id") Long id, @Param("userId") Long userId);

    /**
     * 查询视频标签分页
     *
     * @param pageQuery
     * @param websiteVideoWrapper
     * @param video
     * @param userId
     * @return
     */
    Page<WebsiteVideoVo> selectPageList(@Param(Constants.WRAPPER) Wrapper<WebsiteVideo> websiteVideoWrapper,
                                        @Param("page") Page<WebsiteVideo> Page, @Param("video") WebsiteVideoBo video, @Param("userId") Long userId);
}
